#include <iostream>

int main()
{
	int n; std::cin >> n;
	if (n <= 8) { std::cout << "0\n"; return 0; }
	if (n == 9) { std::cout << "8\n"; return 0; }
	std::cout << "72";
	for (n -= 10; n; n--) std::cout << "0";
	std::cout << "\n";
}

